﻿using PineLake.Drmwe.ConvertValue.ConvertEnumValue.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PineLake.Drmwe.ConvertValue.ConvertEnumValue
{
    /// <summary>
    /// 枚举类转换成LIST
    /// </summary>
    public interface IConvertsEnum
    {
        /// <summary>
        /// （通过枚举类型获取所有枚举）键跟值
        /// </summary>
        /// <typeparam name="T">枚举类</typeparam>
        /// <returns></returns>
        List<ConvertEnumToList> GetEnumList<T>() where T : Enum;

        /// <summary>
        /// （通过枚举类型获取所有枚举）(键)
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="value"></param>
        /// <returns></returns>
        List<T> GetEnumKeyList<T>() where T : Enum;
        /// <summary>
        /// （通过枚举类型获取所有枚举）(值)
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        /// 
        List<EnumValueList> GetEnumValueList<T>() where T : Enum;
    }
}
